package com.gusha.model;

import java.io.Serializable;
import java.math.BigInteger;
import java.util.Date;

import javax.persistence.*;

import org.hibernate.annotations.DynamicInsert;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


@Entity
@Table(name="scroll_picture")
@NamedQuery(name="ScrollPicture.findAll", query="SELECT s FROM ScrollPicture s")
@DynamicInsert
@Data
@NoArgsConstructor
@AllArgsConstructor

public class ScrollPicture implements Serializable{

	private static final long serialVersionUID = 1L;
	@Id
    @GeneratedValue(strategy=GenerationType.IDENTITY)    
    private BigInteger id;
	
	//图片名称
	@Column(name="name")
    private String name;
	
	//图片路径
	@Column(name="path")
    private String path;
	
	//图片主题
	@Column(name="subject")
    private String subject;
	
	//上传时间
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="add_time")
    private Date addTime;
	
	//修改时间
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="update_time")
    private Date updateTime;
	
	//是否删除图片
	@Column(name="is_delete")
    private BigInteger isDelete;

	public BigInteger getId() {
		return id;
	}

	public void setId(BigInteger id) {
		this.id = id;
	}



	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public String getSubject() {
		return subject;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}

	public Date getAddTime() {
		return addTime;
	}

	public void setAddTime(Date addTime) {
		this.addTime = addTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public BigInteger getIsDelete() {
		return isDelete;
	}

	public void setIsDelete(BigInteger isDelete) {
		this.isDelete = isDelete;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	
	
}
